﻿@model IEnumerable<Hub.Models.ShareContentPartRecord>
@{
    var grid = new WebGrid(source: Model);
}

<h1>View all mappings</h1>

<br />
@grid.GetHtml(
    headerStyle: "table-header",
    rowStyle: "table-row",
    alternatingRowStyle: "table-row",
    columns: grid.Columns(
        grid.Column(format: @<a href="@Url.Action("EditMapping", new { id = @item.Id })">Edit</a>),
        grid.Column(format: @<a href="@Url.Action("DeleteMapping", new { id = @item.Id })">Delete</a>),
        grid.Column(columnName: "Title", header: "Title"),
        grid.Column(columnName: "Description", header: "Title"),
        grid.Column(columnName: "PictureUrl", header: "Picture",
            format: @<img width="100" src="@item.PictureUrl" />
        )        
    )
)
